﻿using Microsoft.Extensions.DependencyInjection;
using NLog;

namespace Enterprises.Wpf.Core.Logs;

public static class NLogRegister
{
    //服务NLog
    public static ServiceCollection UseNLog(this ServiceCollection services)
    {
        services.AddSingleton<ILogger>(sp => NLog.LogManager.GetCurrentClassLogger());
        return services;
    }
}